package com.tq.framework;


import lombok.extern.slf4j.Slf4j;


import java.awt.geom.IllegalPathStateException;
import java.io.*;
import java.util.stream.Collectors;

/**
 * @author TqCoder
 * @since 2.0.0
 */
@Slf4j
public class Main {
    public static void main(String[] args) throws IOException {
//        NextApplication.run("com.tq.next");
        InputStream resourceAsStream = Main.class.getClassLoader().getResourceAsStream("logback.xml");
        if(resourceAsStream == null){
             throw new IllegalPathStateException("logback.xml not found");
        }
        String content = new BufferedReader(new InputStreamReader(resourceAsStream)).lines().collect(Collectors.joining("\n"));


        log.info("content: {}", content);
    }
}
